﻿using ITSM.Model.Entity;
using ITSM.Model.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ITSM.Service
{
    public interface IContingencyPlanTable
    {
        /// <summary>
        /// 添加应急方案
        /// </summary>
        /// <param name="planTable"></param>
        /// <returns></returns>
        public bool AddContingencyPlanTable(RYD_ContingencyPlanTable planTable);

        /// <summary>
        /// 查询应急方案列表
        /// </summary>
        /// <returns></returns>
        public List<M_ContingencyPlanTable> QueryContingencyPlanTable(string title);

        /// <summary>
        /// 查询历史应急方案列表
        /// </summary>
        /// <returns></returns>
        public List<M_ContingencyPlanTable> QueryContingencyPlanTableHistory(string title);

        /// <summary>
        /// 查询应急方案详情
        /// </summary>
        /// <returns></returns>
        public RYD_ContingencyPlanTable QueryContingencyPlanTableInfo(int ContingencyPlanNo);

        /// <summary>
        /// 查询历史应急方案详情
        /// </summary>
        /// <returns></returns>
        public RYD_ContingencyPlanTableDetail QueryContingencyPlanTableHistoryInfo(string HistoryId);

        /// <summary>
        /// 查询发布后的应急方案详情
        /// </summary>
        /// <returns></returns>
        public M_ContingencyPlanTableInfo QueryContingencyPlanTableInfoIng(string ContingencyPlanId);

        /// <summary>
        /// 禁用应急方案
        /// </summary>
        /// <param name="RYD_ContingencyPlanNo"></param>
        /// <returns></returns>
        public bool DisableContingencyPlanTable(int RYD_ContingencyPlanNo);

        /// <summary>
        /// 发布应急方案
        /// </summary>
        /// <param name="planTable"></param>
        /// <returns></returns>
        public bool PublishContingencyPlanTable(RYD_ContingencyPlanTableDetail planTable);

    }
}
